import com.lagou.context.EApplicationContext;
import com.lagou.service.TransferService;
import com.lagou.service.impl.TransferServiceImpl;
import org.junit.Test;

public class springtest {


    @Test
    public void test() throws Exception {

        EApplicationContext customApplicationContext = new EApplicationContext("com.lagou");
        TransferService transferService = (TransferService) customApplicationContext.getBean(TransferServiceImpl.class.getName(),customApplicationContext);
        transferService.transfer("1", "2", 100);
    }
}
